package com.song.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Author 宋伟宁
 * @Date 2024/1/4
 * @Version 1.0
 * name:是要调用微服务的名称
 * path:是要调用的控制器类上的@RequestMapping
 *
 **/
@FeignClient(name = "product-9000",path = "product")
public interface FeignService {

    @RequestMapping(value = "/",method = RequestMethod.GET)
    public String index();
}
